package weifei.wx.community.entity.dto;


import lombok.Data;
import weifei.wx.community.entity.Tie;

import java.util.Date;


@Data
public class TieDTO
{
    private UserDTO userDTO;
    private Long id;
    private Date publishTime;
    private String content;


    public TieDTO(UserDTO userDTO, Tie tie)
    {
        this.userDTO = userDTO;
        this.id = tie.getId();
        this.content = tie.getContent();
        this.publishTime = tie.getPublishTime();
    }
}


